package org.dx.oho.entity;

import java.util.Date;
import java.util.List;
import java.util.Objects;

/**
 * create by duanx 2020/11/9
 *@description： 商品类型表
 *@classname: ProductCategory
 *@author: duanx
 *@date: 2020/11/9 15:23
 **/
public class ProductCategory extends BaseEntity {
    /**
     * 产品类型ID
     */
    private String productCategoryId;
    /**
     * 产品类型名称
     */
    private String productCategoryName;
    /**
     * 优先级级别
     */
    private String priority;

    /**
     * 产品列表
     */
    private List<Product> products;

    public String getProductCategoryId() {
        return productCategoryId;
    }

    public void setProductCategoryId(String productCategoryId) {
        this.productCategoryId = productCategoryId;
    }

    public String getProductCategoryName() {
        return productCategoryName;
    }

    public void setProductCategoryName(String productCategoryName) {
        this.productCategoryName = productCategoryName;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ProductCategory that = (ProductCategory) o;
        return Objects.equals(productCategoryId, that.productCategoryId) &&
                Objects.equals(productCategoryName, that.productCategoryName) &&
                Objects.equals(priority, that.priority) &&
                Objects.equals(products, that.products);
    }

    @Override
    public int hashCode() {
        return Objects.hash(productCategoryId, productCategoryName, priority, products);
    }

    @Override
    public String toString() {
        return "ProductCategory{" +
                "productCategoryId='" + productCategoryId + '\'' +
                ", productCategoryName='" + productCategoryName + '\'' +
                ", priority='" + priority + '\'' +
                ", products=" + products +
                '}';
    }
}
